package day10;

import java.io.Serializable;

public class Student implements Serializable {
	private String id;
	private String name;
	private int num1;
	private int num2;
	private int num3;
	private int ave;
	
	public int getAve() {
		return ave;
	}
	public void setAve() {
		this.ave = (num1+num2+num3)/3;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getNum1() {
		return num1;
	}
	public void setNum1(int num1) {
		this.num1 = num1;
	}
	public int getNum2() {
		return num2;
	}
	public void setNum2(int num2) {
		this.num2 = num2;
	}
	public int getNum3() {
		return num3;
	}
	public void setNum3(int num3) {
		this.num3 = num3;
	}
	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", num1=" + num1 + ", num2=" + num2 + ", num3=" + num3
				+ ", ave=" + ave + "]";
	}
	
	
	
}
